<template>
	<view class="all">
		<u-navbar :title="data.name" title-bold>
			<view slot="right" @click="submit(data.name)" style="margin-right: 20rpx;
			font-size: 30rpx;
			font-family: Source Han Sans CN;
			font-weight: 600;
			color: #333333;
			opacity: 1;
			">分享历史</view>
		</u-navbar>
		<view style="padding: 30rpx;" v-if="data.name!='分销中心'">
			<zhuanlan v-if="data.name=='辅助开通'"></zhuanlan>
			<xxk v-if="data.name=='邀请参训'" tabble></xxk>
		</view>
		<view v-if="data.name=='分销中心'">
			<liuyuno-tabs :tabData="list" :activeIndex="current" @tabClick='tabClick' :pingfen='false' back='white' />
			<view style="padding: 30rpx;">
				<zhuanlan v-if="current==0"></zhuanlan>
				<jpkc v-if="current==1" :geren='1'
				:image='false'
				></jpkc>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				current: 0,
				list: [{
					name: '专栏',
					width: '150rpx',
				}, {
					name: '精品课程',
					width: '200rpx'
				}, ],
				data: {},
			};
		},
		methods: {
			tabClick(a,b){
				this.current=b
			},
			submit(a) {
				uni.navigateTo({
					url: `./fxls?name=${a}`
				})
			},
		},
		onLoad(a) {
			this.data = JSON.parse(a.data)

		}
	}
</script>

<style lang="scss">

</style>
